package com.chapter6.jiekou.demo6;


public class Trainer {
    private Animal animal;

    public Trainer(Animal animal){

        this.animal=animal;
    }
    public void train(){
        animal.eat();
        animal.sleep();
        //调用了接口中的默认方法
        animal.desc();
    }
}
